fixOptions.js ➔ fixOptions   A
last analyzed

Complexity

Conditions 1
Paths 16

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 16
nop 1
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
1
export default fixOptions;
2
3
function fixOptions(options){
4
	// Fix the margins
5
	options.marginTop = options.marginTop || options.margin;
6
	options.marginBottom = options.marginBottom || options.margin;
7
	options.marginRight = options.marginRight || options.margin;
8
	options.marginLeft = options.marginLeft || options.margin;
9
10
	return options;
11
}
12